<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>PRC运营后台</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="/layui_admin/src/layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="/layui_admin/src/layuiadmin/style/admin.css" media="all">
    <link rel="stylesheet" href="/layui_admin/src/layuiadmin/style/template.css" media="all">
    <style>
        body{overflow-y: scroll;}
        .layui-disabled, .layui-disabled:hover {
            color: #504949!important;
            cursor: not-allowed!important;
        }
        .layui-table-cell {
            height: auto !important;
        }

        .layui-upload-img {
            width: 92px;
            height: 92px;
            margin: 0 10px 10px 0;
        }
        .search .layui-form-label {
            width: auto !important;
        }
    </style>
</head>
<body>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
    </div>
</div>


<script src="/layui_admin/src/layuiadmin/layui/layui.js"></script>
<script
        src="https://code.jquery.com/jquery-3.3.1.js"
        integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60="
        crossorigin="anonymous"></script>
<script src="/static/admin/js/common.js"></script>
<script src="/static/admin/js/address.js"></script>
<script>
    /**
     * 打开页面
     * @param _name
     * @param _url
     */
    function open_page(_name, _url) {
        layer.open({
            title : _name,
            type: 2,
            content :_url,
            maxmin :true,
            area : ['100%', '100%']
        });
    }

    // console.log($.mob_data_picker1);



    let arrk = 0;
    let arr = $.mob_data_picker1;
    let mytime = setInterval(function(){showme()}, 1000);
    function showme(){
        console.log(arr[arrk]);
        $.ajax({
            type :'post',
            url : '{:url("save_add")}',
            data : {
                add : arr[arrk]
            },
            dataType : 'json',
            success : function (res) {
                console.log(res);
            }
        });
        arrk += 1;
        if(arrk > arr.length - 1) clearInterval(mytime);
    }


    // layui.config({
    //     base: '/layui_admin/src/layuiadmin/' //静态资源所在路径
    // }).extend({
    //     index: 'lib/index' //主入口模块
    // }).use(['index', 'table'], function () {
    //     let $ = layui.jquery, table = layui.table, admin = layui.admin;
    //
    //
    // });
</script>
</body>
</html>